import request from '@/utils/request'




// 查询收款管理列表
export function listCollection(query) {
  return request({
    url: '/contract/collection/list',
    method: 'get',
    params: query
  })
}

// 查询收款管理详细
export function getCollection(gid) {
  return request({
    url: '/contract/collection/' + gid,
    method: 'get'
  })
}

// 新增收款管理
export function addCollection(data) {
  return request({
    url: '/contract/collection',
    method: 'post',
    data: data
  })
}

// 修改收款管理
export function updateCollection(data) {
  return request({
    url: '/contract/collection',
    method: 'put',
    data: data
  })
}
export function approveCollection(gid) {
  return request({
    url: '/contract/collection/approve/'+gid,
    method: 'get',
  })
}
// 删除收款管理
export function delCollection(gid) {
  return request({
    url: '/contract/collection/' + gid,
    method: 'delete'
  })
}

// 导出收款管理
export function exportCollection(query) {
  return request({
    url: '/contract/collection/export',
    method: 'get',
    params: query
  })
}
